package cn.easybuy.utils;

import java.util.List;


public class MsgPage {
	private Integer pageIndex=1;
	private Integer pageSize=10;
	private Integer totalCount;
	private Integer totalPageCount;
	

	public Integer getPageIndex() {
		return pageIndex;
	}

	public void setPageIndex(Integer pageIndex) {
		if (pageIndex>0) {
			this.pageIndex = pageIndex;
		}
	}

	public Integer getPageSize() {
		return pageSize;
	}

	public void setPageSize(Integer pageSize) {
		if (pageSize>0) {
			this.pageSize = pageSize;
		}
	}

	public Integer getTotalCount() {
		return totalCount;
	}

	public void setTotalCount(Integer totalCount) {
		if (totalCount>0) {
			this.totalCount = totalCount;
			totalPageCount=
					totalCount%pageSize==0?
							totalCount/pageSize:
								totalCount/pageSize+1;
		}
	}

	public Integer getTotalPageCount() {
		return totalPageCount;
	}

	public void setTotalPageCount(Integer totalPageCount) {
		this.totalPageCount = totalPageCount;
	}


	
}
